package com.test.singleton;

/**
 * Created by jl on 2017/12/12.
 */
public class Demo1 {
    private static final Demo1 DEMO1 = new Demo1();

    private Demo1() {
        //可能被反射调用，如果已有实例 抛异常
    }

    public static Demo1 getInstance() {
        return DEMO1;
    }
}
